package com.cmys.money.cloudshop.model.product;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.cmys.money.cloudshop.model.system.ImageFile;

@Entity
@Table(name="tb_brand")
public class Brand implements Serializable{
	
    private static final long serialVersionUID = 2567127007152302618L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(length=20) 
	private Long id;
	
	@Column(length=20)
	private String code;
	
	/** 品牌名称 **/
	@Column(length=40, nullable=false)
	private String name;
	
	/** 是否可见 **/
	@Column(nullable=false)
	private Boolean visible = true;
	
	/** 图片 **/
	@Embedded
	private ImageFile imageFile;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getVisible() {
		return visible;
	}

	public void setVisible(Boolean visible) {
		this.visible = visible;
	}

	public String getCode() {
    	return code;
    }

	public void setCode(String code) {
    	this.code = code;
    }

	public ImageFile getImageFile() {
		return imageFile;
	}

	public void setImageFile(ImageFile imageFile) {
		this.imageFile = imageFile;
	}

}
